<?php
namespace Home\Controller;
use Think\Controller;
class ContestController extends Controller {
    public function getContests(){

        // $m_id = $_GET['m_id'];

        $contests = M('contests');
        $data = $contests -> order("contest_id")->select();

        echo json_encode($data);
         echo "<br>";

    }
}
?>
